﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Collections.Specialized;

namespace Demo
{
    public partial class JsApiIntoduction : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            dt.TableName = "Profiles";
            dt.Columns.Add("Name");
            dt.Columns.Add("Address");
            dt.Columns.Add("Phone");
            dt.Columns.Add("Email");

            dt.Rows.Add("David", "123 Maine Street USA", "555-555-5555", "david@tempuri.org");
            dt.Rows.Add("Doe, John", "Elm Street USA", "444-444-4444", "john.doe@temuri.org");
            dt.Rows.Add("Doe, Jane", "Last House on the Left", "333-333-3333", "jane.doe@temuri.org");
            dt.Rows.Add("Public, John Q", "1600 Street USA", "222-222-2222", "john.public@tempuri.org");
            DataSet ds = new DataSet();
            ds.Tables.Clear();
            ds.Tables.Add(dt);

            this.MultiProfileUserControl1.DataSource = ds;
            this.MultiProfileUserControl1.DataBind();

        }
    }
}